using System;
using System.Collections.Generic;
using System.Text;
namespace BLL.BusinessLayer
{
	[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
	[Serializable]
	public class ClsApps_Quizzes: BusinessObjectBase
	{

		public ClsApps_Quizzes() {}

		#region InnerClass
		public enum ClsApps_QuizzesFields
		{
			App_Quize_ID,
			AppID,
			QuizID,
			Likes
		}
		#endregion

		#region Data Members

			int _app_Quize_ID;
			int? _appID;
			int? _quizID;
			int? _likes;

		#endregion

		#region Properties

		public int  App_Quize_ID
		{
			 get { return _app_Quize_ID; }
			 set
			 {
				 if (_app_Quize_ID != value)
				 {
					_app_Quize_ID = value;
					 PropertyHasChanged("App_Quize_ID");
				 }
			 }
		}

		public int?  AppID
		{
			 get { return _appID; }
			 set
			 {
				 if (_appID != value)
				 {
					_appID = value;
					 PropertyHasChanged("AppID");
				 }
			 }
		}

		public int?  QuizID
		{
			 get { return _quizID; }
			 set
			 {
				 if (_quizID != value)
				 {
					_quizID = value;
					 PropertyHasChanged("QuizID");
				 }
			 }
		}

		public int?  Likes
		{
			 get { return _likes; }
			 set
			 {
				 if (_likes != value)
				 {
					_likes = value;
					 PropertyHasChanged("Likes");
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("App_Quize_ID", "App_Quize_ID"));
		}

		#endregion

	}
}
